<template>
  <div>
    <div>
      <span> RemoteView {{ injectVal }}</span>
    </div>
    <!-- <div>
      <button @click="inCreaseVal">inCreaseVal</button>
    </div> -->
  </div>
</template>

<script>
export default {
  name: 'RemoteView',
  props: {
    injectVal: {
      type: Number,
      default: 0
    }
  },
  data() {
    return {
      countVal: 2
    }
  },
  beforeCreate() {
    console.log('RemoteView beforeCreate');
  },
  created() {
    console.log('RemoteView created');
  },
  beforeMount() {
    console.log('RemoteView beforeMount');
  },
  mounted() {
    console.log('RemoteView mounted');
  },
  beforeUpdate() {
    console.log('RemoteView beforeUpdate');
  },
  updated() {
    console.log('RemoteView updated');
  },
  methods: {
    inCreaseVal() {
      this.countVal++;
    }
  }
}
</script>

<style lang="scss" scoped></style>